import com.mobilefish.webservice.countries.CountriesWebserviceMobilefishComPort;
import com.mobilefish.webservice.countries.CountriesWebserviceMobilefishComServiceLocator;
import com.mobilefish.webservice.countries.CountryData;


public class clienteWebServiceCountries {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

	    CountriesWebserviceMobilefishComServiceLocator serviceLocator = null;
	    CountriesWebserviceMobilefishComPort port = null;
	    CountryData countryData = null;		
		try {
		      serviceLocator = new CountriesWebserviceMobilefishComServiceLocator();
		      port = serviceLocator.getCountriesWebserviceMobilefishComPort();
		      countryData = port.countryInfoByIana("us");
		      System.out.println("IANACode: " + countryData.getIanacode());
		      System.out.println("CountryName: " + countryData.getCountryname());
		      System.out.println("Latitude: " + countryData.getLatitude());
		      System.out.println("Longitude: " + countryData.getLongitude());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
